package com.woniuxy.dao;

import com.woniuxy.entity.Equipment;
import com.woniuxy.entity.Inspect;
import com.woniuxy.entity.Operation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OperationDao {
    //根据条件查询所有的手术分页展示
    List<Operation> selectOperationByCondition(@Param("operation") Operation operation ,
                                            @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //查询总条数
    int selectOperationCount( @Param("operation")Operation operation );


    //通过不同科室查询手术类别
    List<Operation> selectOperationByDepartment(@Param("Operation") Operation operation ,
                                              @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //通过不同科室查询到的数据条数
    int selectOperationCountByDepartment( @Param("Operation") Operation operation );

    //通过不同等级查询手术类别
    List<Operation> selectOperationByOperationGrade(@Param("Operation") Operation operation ,
                                              @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //通过不同科室查询到的数据条数
    int selectOperationCountByOperationGrade( @Param("Operation") Operation operation );
}
